package com.xue566.service;

import com.xue566.entity.StudentEntity;
import com.xue566.util.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: Wuzh
 * @Description: Feign客户端，获取服务端提供的学生列表
 * @Date Created in 12:52 2020/8/23
 * @return
 */
@FeignClient(value = "crm-student-server", path = "/student")
public interface IStudentService {

    @RequestMapping(value = "/queryList", consumes = "application/json")
    ResultBody<StudentEntity> queryList (@RequestBody StudentEntity studentEntity);
}
